package com.yanlight.app.dal.dao;

import com.yanlight.app.dal.entity.AdCount;

public interface AdCountDAO {

    void save(AdCount data);

    AdCount queryByAuthId(Integer type, String authId, Long companyId, String codeValue);

    Integer countItemByDay(Integer type, String authId, Long companyId, String codeValue);

    void updateUsedStatus(Long id, boolean usedStatus);

    Integer todayAwardTimes(String authId, boolean isUsed);

    AdCount selectNewestOne(String authId);

    //当前用户今天支付获取的抽奖机会
    Integer selectPayCountToday(String authId);

}
